home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-05-30 | 3.3 KB | 166 lines | [TEXT/KAHL] |
- typedef struct {
- StringHandle fName;
- StringHandle mbName;
- int vRefNum;
- long dirID;
- long fileID;
- } FListRec, *FListPtr;
-
- typedef struct {
- int mRefIn;
- int mRefOut;
- int procID;
- Handle protoData;
- StringHandle errReason;
- int timeOut;
- int fileCount;
- int filesDone;
- long bytesDone;
- long bytesTotal;
- long startTime;
- union {
- unsigned int word;
- struct {
- int transMode : 1;
- int stopTrans : 1;
- int carrierLost : 1;
- int useMacBinary : 1;
- int newMBName : 1;
- int newError : 1;
- int newFile : 1;
- int Recovering : 1;
- int reserved : 8;
- } B;
- } F;
- FListRec fList[];
- } ProtoRec, *ProtoRecPtr, **ProtoRecHandle;
-
- /* Messages passed to the PROC */
-
- #define SEND 0
- #define RECEIVE 1
- #define SETPREFS 2
-
- #define BUILDTMENU 99
- #define BUILDMENU 100
- #define ABLEMENU 101
- #define DOMENU 102
- #define DISPOSEPREC 103
- #define DISPOSEMENU 104
- #define BUILDDAMENU 105
-
- /* StackSaver structures */
-
- typedef struct {
- Handle stackData;
- long originalSP;
- long jumpBack;
- long startTime;
- } SSaverRec, *SSaverPtr;
-
- /* StackSaver prototypes */
-
- extern void Return(int timeOut,SSaverPtr SSP);
- extern OsErr JumpBack(int message,ProtoRecPtr prp,
- long refCon,SSaverPtr SSP,OsErr procPtr());
-
- typedef struct {
- long CurDirStore;
- char vName[64];
- } UtilPref, *UtilPrefPtr, **UtilPrefHandle;
-
- typedef struct {
- int pFlags;
- long refCon;
- Str255 subName;
- Str255 autoCom;
- } ProcSub;
-
- typedef struct {
- int SubCount;
- /* sub function descriptions follow */
- } PInf, *PInfPtr, **PInfHandle;
-
- typedef struct {
- int matchChar;
- long menuSelect;
- char autoCom[];
- } AutoComRec, *AutoComPtr, **AutoComHandle;
-
- typedef struct {
- int procID;
- int itemID;
- int HmenuID;
- int HitemID;
- StringHandle subName;
- int pFlags;
- int funcMask;
- long refCon;
- } ProcList;
-
- typedef struct {
- int pMode; /* set to either TERMINALMODE or BBSMODE */
- MenuHandle pMenu; /* set to "transfer" menu */
- void (*doUpdate)(); /* use for updating when in Help */
- int transIndex; /* filled in for calling PROCs */
- int transMessage; /* filled in for calling PROCs */
- long transRefCon; /* filled in for calling PROCs */
- ProtoRecHandle transData; /* filled in for calling PROCs */
- int pCount;
- int firstID;
- int foldID;
- int helpID;
- int autoCount;
- AutoComHandle autoComs;
- ProcList pList[];
- } ProcMenu, *ProcMenuPtr, **ProcMenuHandle;
-
- #define PROCINDEX 10
-
- #define TERMINALMODE 0
- #define BBSMODE 1
-
- #define CANSEN 0x8000
- #define CANREC 0x4000
- #define CANBSEN 0x2000
- #define CANBREC 0x1000
- #define SENFLOW 0x0800
- #define RECFLOW 0x0400
- #define CONTREC 0x0200
- #define SETERMPREF 0x0100
- #define SETBBSPREF 0x0080
-
- /* Structures and defines for Eric Berman's Help Editor system */
-
- typedef struct {
- Str255 help_String;
- int help_ID;
- ResType help_Type;
- } Help_List_Type, *Help_List_Ptr, **Help_List_Handle;
-
- typedef struct {
- int varCode;
- int Dialog_ID;
- ResType Help_Type;
- Handle the_Help;
- int Num_Types;
- ResType *Res_Types;
- Help_List_Handle topic_List;
- Str255 message;
- Point upper_Left;
- void (*update_Proc)();
- int (*map_Hook)();
- } Block_Record, *Block_Ptr;
-
- #define ShowTopic_Trap 1
- #define TextMenu_Trap 2
- #define FindLabel_Trap 3
- #define DrawGraphicMenu_Trap 4
- #define GraphicMenu_Trap 5
- #define GetTopicList_Trap 7
- #define ShellSort_Trap 8
- #define ShowTopicList_Trap 9
-
- #define Text_List_ID 901
- #define Topic_Window_ID 902
-